package p10tika;

import org.apache.tika.exception.TikaException;
import org.junit.Before;
import org.junit.Test;
import org.xml.sax.SAXException;

import java.io.File;
import java.io.IOException;

public class Test10 {

    @Test
    public void test(){
        IndexUitls10 indexUitls=new IndexUitls10();
        indexUitls.index();
    }
    @Test
    public void test1() throws TikaException, IOException, SAXException {
        IndexUitls10 indexUitls=new IndexUitls10();
        File file = new File("d:/test.docx");
        System.out.println(indexUitls.parseFile(file));
    }

    @Test
    public void test2() throws IOException, TikaException {
        IndexUitls10 indexUitls=new IndexUitls10();
        File file = new File("d:/test.docx");
        System.out.println(indexUitls.parseFile2(file));
    }
}
